    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.ArrayList"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<script>
    var vis = false;
    function change(table_id, button_id)
    {
      var table = document.getElementById(table_id);
      var button = document.getElementById(button_id);
      if (vis) {table.style.display = "none"; button.value = "+"; vis = false;}
      else {table.style.display = "inline"; button.value = "-"; vis = true;}
    }
    </script>
<html>
    <head>
        <meta http-equiv="Content-Type"
              content="text/html; charset=windows-1252"></meta>
        <title>Erasmus</title>
    </head>
    <body background="img/bg.gif" bgcolor="#202020" topmargin="0"
          leftmargin="0"><table border="0" width="100%" height="75"
                                cellspacing="0" cellpadding="0"
                                bgcolor="#202020">
            <tr>
                <td height="32" align="right" valign="middle">
                    <font color="white" face="Calibri" size="4">
                        Contact:&nbsp;
                        <a href="mailto:yourmail@domain.com"
                           style="color:#D8D8D8">rtharak1@jhu.edu</a>
                        &nbsp;
                    </font>
                </td>
            </tr>
            <tr>
                <td height="110">
                    <img alt="" border="0" src="img/logo.jpg" width="100%"
                         height="100%"></img>
                </td>
            </tr>
            <tr>
                <td height="10">&nbsp;</td>
            </tr>
        </table><table border="0" width="100%" cellspacing="0" cellpadding="0"
                       background="img/bluebg.gif">
            <tr>
                <td width="100%">
                    <font color="Black" face="Calibri" size="4">
                        <b>&nbsp;&nbsp; 
                            <a href="index.html"
                               style='color:black;text-decoration:none;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Home</a>&nbsp;&nbsp;
                                                                                                                     |&nbsp;&nbsp; 
                            <a href="BioClusterHome.jsp"
                               style='color:black;text-decoration:none;'>Tool</a>&nbsp;&nbsp;</b>
                    </font>
                </td>
            </tr>
        </table><br></br><br></br><table cellspacing="0" cellpadding="0"
                                         border="0" width="1200" align="center">
            <tr>
                <td align="left">
                    <font face="Calibri" size="4">
                        <b>Inflation Factor Level&nbsp;:&nbsp;<%
                //String fileNameFromAction = (String) request.getSession().getAttribute("fileNameFromAction"); 
                HashMap hashMapListOfFiles = (HashMap)request.getSession().getAttribute("hashMapListOfFiles");
                HashMap mapOfInputFastaFile = (HashMap)request.getSession().getAttribute("mapOfInputFastaFile");  
                String fileNames = (String) request.getSession().getAttribute("fileNameFromAction"); 
                System.out.println(fileNames);
                HashMap tempJoinHashMap = (HashMap)hashMapListOfFiles.get(fileNames);
            %>
                             
                            <%=fileNames%></b>
                    </font>
                </td>
                <td align="right">
                    <font face="Calibri" size="4">
                        <%int offset = Integer.parseInt((String) request.getSession().getAttribute("offset"));%>
                        <b>Total No. of Proteins &nbsp;:&nbsp; 
                            <%=tempJoinHashMap.size()%></b>
                    </font>
                </td>
            </tr>
        </table><table cellspacing="0" cellpadding="0" border="0" width="1200"
                       align="center">
            <tr>
                <td align="right">
                    <html:form action="/ListIteration">
                        <%   if(offset != 1) {  %>
                        <html:submit property="clusterControl" value="Back"/>
                        <%   }
                    if(offset != 12) {%>
                        <html:submit property="clusterControl"
                                     value="Cluster Further"/>
                        <%   } else {%>
                        <a href="BioClusterHome.jsp" style='color:white'>Go back
                                                                         to Home
                                                                         Page</a>
                        <%  } %>
                    </html:form>
                </td>
                <td align="left">
                    <html:form action="/DownloadToXLS">
                        <html:submit value="Download to XLS"/>
                    </html:form>
                </td>
            </tr>
        </table><br></br><table cellspacing="2" cellpadding="0" border="1"
                                width="1200" height="0"
                                background="img/bluebg.gif" align="center"
                                style='table-layout:fixed'>
            <tr>
                <td width="40" height="40" align="left">
                    <font color="Black" face="Calibri" size="4">
                        <b>NO.</b>
                    </font>
                </td>
                <td width="400" height="40" align="left">
                    <font color="Black" face="Calibri" size="4">
                        <b>ACCESSION</b>
                    </font>
                </td>
                <td width="660" height="40" align="left">
                    <font color="Black" face="Calibri" size="4">
                        <b>DESCRIPTION</b>
                    </font>
                </td>
                <td width="100" height="40" align="left">
                    <font color="Black" face="Calibri" size="4">
                        <b>CLUSTER(S)</b>
                    </font>
                </td>
            </tr>
        </table><table cellspacing="0" cellpadding="1" border="1"
                       bgcolor="#D8D8D8" width="1200" align="center"
                       style='table-layout:fixed'>
            <%
        Iterator itrJoinHashMap = tempJoinHashMap.keySet().iterator();
        int iCount = 1;
        while(itrJoinHashMap.hasNext()) {
            String iDForRef = (String)itrJoinHashMap.next();
            //System.out.println("Tab ID No: "+iDForRef);
            ArrayList tempArrayList = (ArrayList)tempJoinHashMap.get(iDForRef);
            Iterator itrTempArrayLst = tempArrayList.iterator();
            int jCount = 0;
            while(itrTempArrayLst.hasNext()) { 
                String tempAccNo = (String)itrTempArrayLst.next();
                //System.out.println(tempAccNo);
                String tempSeqAndDesc[] = (String[])mapOfInputFastaFile.get(tempAccNo); 
            if(jCount == 0) {    
            %>
            <tr>
                <td width="40" height="30" align="left">
                    <font color="Black" face="Calibri" size="3">
                        <b><%=iCount%></b>
                    </font>
                </td>
                <% 
                %>
                <td style="word-break:break-all" width="400" height="30"
                    align="left">
                    <font color="Black" face="Calibri" size="3">
                        <b><%=tempAccNo%></b>
                    </font>
                </td>
                <% 
                %>
                <td style="word-break:break-all" width="660" height="30"
                    align="left">
                    <font color="Black" face="Calibri" size="3">
                        <b><%=tempSeqAndDesc[0]%></b>
                    </font>
                </td>
                <%
                %>
                <td width="70" height="30" align="left">
                    <font color="Black" face="Calibri" size="3">
                        <b><%=(tempArrayList.size()-1)%></b>
                    </font>
                </td>
                <%
                %>
                <td width="30" height="30" align="left">
                    <%if(itrTempArrayLst.hasNext()){%>
                    <form>
                        <input type="button" id="button<%=iCount%>"
                               name="switch" value="+"
                               onclick="change('table<%=iCount%>', 'button<%=iCount%>');"></input>
                    </form>
                    <%}%>
                </td>
                <%
            %>
            </tr>
            <%
            } else if(jCount == 1){
            %>
            <tr>
                <td colspan="5" bgcolor="gray">
                    <table style="display: none" id="table<%=iCount%>"
                           cellspacing="0" cellpadding="1" border="0"
                           align="center" width="1200">
                        <% 
            } 
                 if(jCount != 0) {
                   
                        %>
                        <tr>
                            <td width="40" height="height">&nbsp;</td>
                            <%                      
                %>
                            <td width="400" style="word-break:break-all"
                                height="25" align="left">
                                <font color="white" face="Calibri" size="3">
                                    <%=tempAccNo%>
                                </font>
                            </td>
                            <% 
                %>
                            <td width="760" style="word-break:break-all"
                                height="25" align="left">
                                <font color="white" face="Calibri" size="3">
                                    <%=tempSeqAndDesc[0]%>
                                </font>
                            </td>
                            <% 
                %>
                        </tr>
                        <%
                                 }
                if((jCount == (tempArrayList.size()-1)) && (jCount != 0)) {
            %>
                    </table>
                </td>
            </tr>
            <% 
            }
            jCount++; 
            } 
            iCount++;
            }
    %>
        </table><p>
            <html:errors/>
        </p><p style="margin-left: 20">
            <font face="Calibri" size="2" color="#000000">&nbsp;</font>
        </p><p style="margin-left: 20">
            <font face="Calibri" size="2" color="#000000">&nbsp;</font>
        </p><p style="margin-left: 20">
            <font face="Calibri" size="2" color="#000000">&nbsp;</font>
        </p><p style="margin-left: 20">
            <font face="Calibri" size="2" color="#000000">&nbsp;</font>
        </p><p style="margin-left: 20">
            <font face="Calibri" size="2" color="#000000">&nbsp;</font>
        </p><p style="margin-left: 20" align="center">
            <font face="Calibri" color="#000000" size="2">&copy;2010 The Johns
                                                          Hopkins NHLBI
                                                          Proteomics Center at
                                                          the Johns Hopkins
                                                          Bayview Medical
                                                          Center, Baltimore, MD
                                                          Release 1.0</font>
        </p><table border="0" width="100%" cellspacing="0" cellpadding="0"
                   background="img/botline.gif">
            <tr>
                <td width="100%">
                    <img alt="" border="0" src="img/botline.gif" width="41"
                         height="12"></img>
                </td>
            </tr>
        </table></body>
</html>
